﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ViewModels="clr-namespace:ScrumSprintMonitor.Modules.WorkItemMonitor.ViewModels"
    xmlns:Wpf="clr-namespace:ScrumSprintMonitor.UI.Wpf;assembly=ScrumSprintMonitor.UI.Wpf"
    xmlns:Controls="clr-namespace:ScrumSprintMonitor.Modules.WorkItemMonitor.Controls">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="ViewboxTeamMemberBadgeDataTemplate.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    
    <DataTemplate DataType="{x:Type ViewModels:TeamMembersListViewModel}">
        <ScrollViewer VerticalScrollBarVisibility="Disabled">
            <ScrollViewer.OpacityMask>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF000000" Offset="0.942"/>
                    <GradientStop Color="#00FFFFFF" Offset="0.987"/>
                </LinearGradientBrush>
            </ScrollViewer.OpacityMask>

            <Grid Width="7cm" HorizontalAlignment="Center">
                <Controls:SprintWarningBorder>
                    <Controls:SprintWarningBorder.OpacityMask>
                        <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                            <GradientStop Color="#00000000" Offset="0.0"/>
                            <GradientStop Color="#FF000000" Offset="0.3"/>
                            <GradientStop Color="#FF000000" Offset="1"/>
                        </LinearGradientBrush>
                    </Controls:SprintWarningBorder.OpacityMask>
                </Controls:SprintWarningBorder>

                <ItemsControl ItemsSource="{Binding TeamMembersIncludingUnassigned}" Focusable="False">
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                            <Wpf:AnimatedStackPanel Duration="0:0:2" />
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                </ItemsControl>
            </Grid>
        </ScrollViewer>
    </DataTemplate>
</ResourceDictionary>